Optimal. Leaf size=207 \[ -\frac{e^3 \cos (c+d x) (e \sin (c+d x))^{m-3} \text{Hypergeometric2F1}\left (-\frac{3}{2},\frac{m-3}{2},\frac{m-1}{2},\sin ^2(c+d x)\right )}{a^2 d (3-m) \sqrt{\cos ^2(c+d x)}}-\frac{e^3 \cos (c+d x) (e \sin (c+d x))^{m-3} \text{Hypergeometric2F1}\left (-\frac{1}{2},\frac{m-3}{2},\frac{m-1}{2},\sin ^2(c+d x)\right )}{a^2 d (3-m) \sqrt{\cos ^2(c+d x)}}+\frac{2 e^3 (e \sin (c+d x))^{m-3}}{a^2 d (3-m)}-\frac{2 e (e \sin (c+d x))^{m-1}}{a^2 d (1-m)} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.525747, antiderivative size = 207, normalized size of antiderivative = 1., number of steps used = 9, number of rules used = 6, integrand size = 23, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.261, Rules used = {3872, 2875, 2873, 2577, 2564, 14} \[ -\frac{e^3 \cos (c+d x) (e \sin (c+d x))^{m-3} \, _2F_1\left (-\frac{3}{2},\frac{m-3}{2};\frac{m-1}{2};\sin ^2(c+d x)\right )}{a^2 d (3-m) \sqrt{\cos ^2(c+d x)}}-\frac{e^3 \cos (c+d x) (e \sin (c+d x))^{m-3} \, _2F_1\left (-\frac{1}{2},\frac{m-3}{2};\frac{m-1}{2};\sin ^2(c+d x)\right )}{a^2 d (3-m) \sqrt{\cos ^2(c+d x)}}+\frac{2 e^3 (e \sin (c+d x))^{m-3}}{a^2 d (3-m)}-\frac{2 e (e \sin (c+d x))^{m-1}}{a^2 d (1-m)} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 3872
Rule 2875
Rule 2873
Rule 2577
Rule 2564
Rule 14
Rubi steps
\begin{align*} \int \frac{(e \sin (c+d x))^m}{(a+a \sec (c+d x))^2} \, dx &=\int \frac{\cos ^2(c+d x) (e \sin (c+d x))^m}{(-a-a \cos (c+d x))^2} \, dx\\ &=\frac{e^4 \int \cos ^2(c+d x) (-a+a \cos (c+d x))^2 (e \sin (c+d x))^{-4+m} \, dx}{a^4}\\ &=\frac{e^4 \int \left (a^2 \cos ^2(c+d x) (e \sin (c+d x))^{-4+m}-2 a^2 \cos ^3(c+d x) (e \sin (c+d x))^{-4+m}+a^2 \cos ^4(c+d x) (e \sin (c+d x))^{-4+m}\right ) \, dx}{a^4}\\ &=\frac{e^4 \int \cos ^2(c+d x) (e \sin (c+d x))^{-4+m} \, dx}{a^2}+\frac{e^4 \int \cos ^4(c+d x) (e \sin (c+d x))^{-4+m} \, dx}{a^2}-\frac{\left (2 e^4\right ) \int \cos ^3(c+d x) (e \sin (c+d x))^{-4+m} \, dx}{a^2}\\ &=-\frac{e^3 \cos (c+d x) \, _2F_1\left (-\frac{3}{2},\frac{1}{2} (-3+m);\frac{1}{2} (-1+m);\sin ^2(c+d x)\right ) (e \sin (c+d x))^{-3+m}}{a^2 d (3-m) \sqrt{\cos ^2(c+d x)}}-\frac{e^3 \cos (c+d x) \, _2F_1\left (-\frac{1}{2},\frac{1}{2} (-3+m);\frac{1}{2} (-1+m);\sin ^2(c+d x)\right ) (e \sin (c+d x))^{-3+m}}{a^2 d (3-m) \sqrt{\cos ^2(c+d x)}}-\frac{\left (2 e^3\right ) \operatorname{Subst}\left (\int x^{-4+m} \left (1-\frac{x^2}{e^2}\right ) \, dx,x,e \sin (c+d x)\right )}{a^2 d}\\ &=-\frac{e^3 \cos (c+d x) \, _2F_1\left (-\frac{3}{2},\frac{1}{2} (-3+m);\frac{1}{2} (-1+m);\sin ^2(c+d x)\right ) (e \sin (c+d x))^{-3+m}}{a^2 d (3-m) \sqrt{\cos ^2(c+d x)}}-\frac{e^3 \cos (c+d x) \, _2F_1\left (-\frac{1}{2},\frac{1}{2} (-3+m);\frac{1}{2} (-1+m);\sin ^2(c+d x)\right ) (e \sin (c+d x))^{-3+m}}{a^2 d (3-m) \sqrt{\cos ^2(c+d x)}}-\frac{\left (2 e^3\right ) \operatorname{Subst}\left (\int \left (x^{-4+m}-\frac{x^{-2+m}}{e^2}\right ) \, dx,x,e \sin (c+d x)\right )}{a^2 d}\\ &=\frac{2 e^3 (e \sin (c+d x))^{-3+m}}{a^2 d (3-m)}-\frac{e^3 \cos (c+d x) \, _2F_1\left (-\frac{3}{2},\frac{1}{2} (-3+m);\frac{1}{2} (-1+m);\sin ^2(c+d x)\right ) (e \sin (c+d x))^{-3+m}}{a^2 d (3-m) \sqrt{\cos ^2(c+d x)}}-\frac{e^3 \cos (c+d x) \, _2F_1\left (-\frac{1}{2},\frac{1}{2} (-3+m);\frac{1}{2} (-1+m);\sin ^2(c+d x)\right ) (e \sin (c+d x))^{-3+m}}{a^2 d (3-m) \sqrt{\cos ^2(c+d x)}}-\frac{2 e (e \sin (c+d x))^{-1+m}}{a^2 d (1-m)}\\ \end{align*}
Mathematica [F] time = 0.673564, size = 0, normalized size = 0. \[ \int \frac{(e \sin (c+d x))^m}{(a+a \sec (c+d x))^2} \, dx \]
Verification is Not applicable to the result.
[In]
[Out]
________________________________________________________________________________________
Maple [F] time = 0.364, size = 0, normalized size = 0. \begin{align*} \int{\frac{ \left ( e\sin \left ( dx+c \right ) \right ) ^{m}}{ \left ( a+a\sec \left ( dx+c \right ) \right ) ^{2}}}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{\left (e \sin \left (d x + c\right )\right )^{m}}{{\left (a \sec \left (d x + c\right ) + a\right )}^{2}}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F] time = 0., size = 0, normalized size = 0. \begin{align*}{\rm integral}\left (\frac{\left (e \sin \left (d x + c\right )\right )^{m}}{a^{2} \sec \left (d x + c\right )^{2} + 2 \, a^{2} \sec \left (d x + c\right ) + a^{2}}, x\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F] time = 0., size = 0, normalized size = 0. \begin{align*} \frac{\int \frac{\left (e \sin{\left (c + d x \right )}\right )^{m}}{\sec ^{2}{\left (c + d x \right )} + 2 \sec{\left (c + d x \right )} + 1}\, dx}{a^{2}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{\left (e \sin \left (d x + c\right )\right )^{m}}{{\left (a \sec \left (d x + c\right ) + a\right )}^{2}}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]